using System;
using System.Web;
using System.Web.Mvc;

namespace Pronghorn.Core
{
	public class CssResult : ActionResult
	{
		public string Content { get; set; }
		public override void ExecuteResult(ControllerContext context)
		{
			context.HttpContext.Response.AddHeader("", "text/css");
			context.HttpContext.Response.Write(Content);

			if (context == null)
			{
				throw new ArgumentNullException("context");
			}
			HttpResponseBase response = context.HttpContext.Response;
			response.ContentType = "text/css";
			if (Content != null)
			{
				response.Write(Content);
			}

		}
	}
}